<script>
export default {
  name: 'EchartTools',
  parseData:function (allMap) {
    var arr=['money','count']
    var backMap={
      count:{},
      money:{},
    }
    arr.forEach(function (_value, _index) {
      var tmpMap=allMap[_value]
      var keysArr = Object.keys(tmpMap)
      var list=[]
      keysArr.forEach(function (key, index) {
        var value = tmpMap[key]
        list.push({
          key:key,
          value:value,
        })
      })
      backMap[_value]=list;
      // console.log('backMap',JSON.stringify(backMap))
    })
    return backMap;
  }
}
</script>

<style scoped>

</style>
